// OUTDOOR SECTION SCRIPT
//    Section: X = 2, Y = 2

// This is the special encounter script for this town.
// The states INIT_STATE and START_STATE have
// meanings that are described in the documenation. States you write
// yourself should be numbered from 10-100.

// flags:
// 222, 0 = healing herbs

beginoutdoorscript;

variables;

short choice;

body;

beginstate INIT_STATE;
// This state called whenever this section is loaded into memory.
break;

beginstate START_STATE;
// Starting state of the section, called every turn the party 
// stands inside this section until you change the state.
break;

beginstate 10;
	message_dialog("Ahead of you is the passage down to other parts of Avernum.",
		"You reluctantly turn around leaving that adventure for another day.");
	block_entry(1);
break;

beginstate 11;
	reset_dialog();
	add_dialog_str(0, "There is a small farm here growing some scraggly crop you don't recognize.", 0);
	add_dialog_str(1, "The pale farmer and his wife meet you at the door.", 0);
	add_dialog_str(2, "They invite you in, full of questions about how you got here from the surface.", 0);
	add_dialog_str(3, "You spend an enjoyable amount of time exchanging news.", 0);
	add_dialog_str(4, "Reluctantly you continue on your quest.", 0);
	add_dialog_choice(0, "OK");
	choice = run_dialog(1);
break;

beginstate 12;
	run_scenario_script(15);
break;
